import java.text.DecimalFormat;
import java.util.Arrays;
import java.util.Scanner;



class Person{
		private String name;
		private int age;
		private boolean gender;
		
		@Override
		public String toString() {
			return "Person [name=" + name + ", age=" + age + ", gender=" + gender + "]";
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public int getAge() {
			return age;
		}
		public void setAge(int age) {
			this.age = age;
		}
		public boolean isGender() {
			return gender;
		}
		public void setGender(boolean gender) {
			this.gender = gender;
		}
		
	}
	
	class Company{
		private Company company;

		public Company getCompany() {
			return company;
		}

		public void setCompany(Company company) {
			this.company = company;
		}

		@Override
		public String toString() {
			return "Company [company=" + company + "]";
		}
		
		
	}
	
	class Employee extends Person{
		private Company company;
		private double salsry;
		
		
		public boolean equals(Object obj){
			DecimalFormat df = new DecimalFormat("#.##");
			while(obj.equals(super.equals(obj)))
			{
				while(obj.equals(salary))
				{
					while(obj.)
				}
			}
			obj.equals(super.equals());
			
			return false;
			
		}
		
//		public String toString(){
//			System.out.println(super.toString()+"-"+company.toString()+"-"+salsry);
//			return null;
//		}
		
			
	}
	
	public class Main31{
		public static void main(String[] args) {
		    Scanner sc = new Scanner(System.in);
		    int n=sc.nextInt();
		    Object[] str=new String[n];
		    for(int i=0;i<n;i++)
		    {
		    	String in=sc.next();
			    if(in=="c")
			    {
			    	
			    	Computer computer=new Computer();
			    }
			    else if(in=="d")
			    {
			    	 Double str1=new Double(sc.next());
			    	 str[i]=str1;
			    }
			    
			    else if(in=="i")
			    {
			    	 Integer str1=new Integer(sc.next());
			    	 str[i]=str1;
			    }
			    
			    else if(in=="s")
			    {
			    	 String str1=new String(sc.next());
			    	 str[i]=str1;
			    }
			    else 
			    {
			    	str[i]=null;
			    }
			    for(;n>=0;n--){
			    	if(str[i]!=null)
			    		System.out.println(str[i].toString());
			    }
		    } 
		    sc.close();
		}
}